/** @file   system.h
    @author M. P. Hayes, UCECE
    @date   21 August 2007
    @brief  Temperature control system.
*/
#ifndef SYSTEM_H
#define SYSTEM_H

#include "config.h"


/** Attempt to maintain current temperature at setpoint.
    @param temp_setpoint desired setpoint temperature
    @param ptemp_current pointer to current temperature
    @return 1 if have new current temp, 0 if no change, negative for error  */
extern int8_t system_update (uint8_t temp_setpoint, uint8_t *ptemp_current);


/** Initialise system.
    @param update_rate the rate \c system_update is called  */
extern void system_init (uint16_t update_rate);

#endif /* SYSTEM_H  */
